package cn.tedu.d20_reflection.work;

public class Emp {
    private String name;
    private double score;

    public Emp(){}

    public Emp(String name, double score) {
        this.name = name;
        this.score = score;
        System.out.println("含参构造触发");
    }

    @Override
    public String toString() {
        return name+","+score;
    }

    public void test01(){
        System.out.println("Emp.test01()");
    }
    public void test02(String name,double score){
        System.out.println("Emp.test02()");
        System.out.println(name+" "+score);
    }
}
